const express = require("express");
const app = express();
const port=3000;
const router=require("./router")

const bodyParser = require("body-parser")
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())

app.use(express.static("./public"))
app.use("/",router)

app.listen(port,()=>{
    console.log(`服务器在${port}端口打开`)
})
